package com.sumainfor.wx.system.maket.controller.rentadviser;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.wx.system.maket.service.RdAbandonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 放弃原因
 * <p>
 *
 * @author: zc
 * @create: 2019-08-19 18:56
 **/
@Controller
@RequestMapping("/RdAbandonController")
public class RdAbandonController {

    @Autowired
    RdAbandonService rdAbandonService;

    @ResponseBody
    @GetMapping("/getAbandonList")
    public JsonResult getAbandonList(){
        JsonResult result=new JsonResult();
        List<Map<String,Object>> list=rdAbandonService.getAbandonList();
        if (list!=null){
            result.put(list);
        }else{
            result.putFailed("服务器繁忙");
        }
        return result;
    }
}
